<?php

namespace app\merchant\controller\data;

use app\merchant\controller\Base;
use app\merchant\model\User as UserModel;

/**
 * 用户数据控制器
 * Class User
 * @package app\store\controller\data
 */
class User extends Base
{


    /**
     * 用户列表
     * @return mixed
     * @param string $nickName 昵称
     * @param int $gender 性别
     * @param int $grade 会员等级
     * @throws \think\exception\DbException
     */
    public function lists()
    {
        $param = $this->postData();
        $model = new UserModel;
        // 用户列表
        $list = $model->getList($param);
        return $this->renderSuccess($list,"查询成功");
    }

}